package com.jieyang.oa.service.impl;

import com.jieyang.oa.dao.PositionDao;
import com.jieyang.oa.pojo.entity.Position;
import com.jieyang.oa.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 29276
 * @version 1.0
 * @description: TODO
 * @date 2021/8/15 15:04
 */
@Service
@Transactional
public class PositionServiceImpl implements PositionService {

    @Autowired
    private PositionDao positionDao;

    @Override
    public List<Position> selectList() {
        return positionDao.selectList();
    }

    @Override
    public Integer insert(Position position) {
        return positionDao.insert(position);
    }

    @Override
    public Integer delete(Integer posId) {
        return positionDao.delete(posId);
    }

    @Override
    public Position selectByPosId(Integer posId) {
        return positionDao.selectByPosId(posId);
    }

    @Override
    public Integer update(Position position) {
        return positionDao.update(position);
    }
}
